package com.ruoyi.common.exception;


import com.ruoyi.common.constant.IResultCode;

/**
 * @ClassName: BizException
 * @author: z越
 * @date: 2024/2/18  17:45
 * @description
 */
public class BizException extends RuntimeException {

    public IResultCode resultCode;

    public BizException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public BizException(String message){
        super(message);
    }

    public BizException(String message, Throwable cause){
        super(message, cause);
    }

    public BizException(Throwable cause){
        super(cause);
    }
}
